/* 在文件顶部添加以下样式 */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.language-switcher button {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.language-switcher button:hover {
  background-color: #45a049;
}

.address-map {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
  display: flex;
  margin-bottom: 20px;
}

input {
  flex-grow: 1;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #4caf50;
}

button {
  padding: 12px 20px;
  font-size: 16px;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn {
  background-color: #4caf50;
  border-radius: 0 4px 4px 0;
}

.search-btn:hover {
  background-color: #45a049;
}

.clear-btn {
  background-color: #f44336;
  border-radius: 4px;
  margin-left: 10px;
}

.clear-btn:hover {
  background-color: #d32f2f;
}

.map-panel-container {
  display: flex;
  gap: 20px;
}

#map-container {
  width: 75%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#address_panel {
  width: 25%;
  height: 600px;
  overflow-y: auto;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条式 */
#address_panel::-webkit-scrollbar {
  width: 8px;
}

#address_panel::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#address_panel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#address_panel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (max-width: 768px) {
  .map-panel-container {
    flex-direction: column;
  }

  #map-container, #address_panel {
    width: 100%;
    height: 300px;
  }
  
}
/* 可以添加到 AddressMap.css 文件中 */
.search-result-item {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-result-item:hover {
  background-color: #f0f0f0;
}

.search-result-item h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.search-result-item p {
  margin: 5px 0;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination button {
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

.show-locations-btn,
.optimal-route-btn {
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.show-locations-btn:hover,
.optimal-route-btn:hover {
  background-color: #45a049;
}
